<!DOCTYPE html>
<!--<html xmlns="http://www.w3.org/1999/xhtml">-->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/static/img/logo/favicon.ico" />
    <link rel="stylesheet" href="/static/assets/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/footer.css">
    <link rel="stylesheet" href="/static/css/header.css">

    <title>论坛</title>

</head>

<body>
    {% include 'header.html' %}

<div class="p-5 m-5 " style="height: 950px;">
    <form accept-charset="UTF-8" action="/publish/" class="publish" id="new_topic" method="post"  enctype="multipart/form-data">
        {% csrf_token %}
            {{ form.media }}            
            {{ form.as_p }}

      <div class="input-group">
        <select name="t_kind" class="form-select" id="inputGroupSelect04" aria-label="Example select with button addon">
            <option selected>选择一个类别...</option>
            {% for kind in kinds %}
                <option value="{{ kind.id }}">{{ kind.k_name }}</option>
            {% endfor %}

        </select>
        <button class="btn btn-outline-secondary" type="submit">提交</button>
      </div>
    </form>
</div>



{% include 'footer.html' %}
<script src="/static/assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
{% if result %}

<script>
    $(document).ready(function () {
        alert('{{ msg }}');
        
    });
</script>
{% endif %}

</body>
</html>
